<template>
  <permissionBtn :auth="auth" icon="el-icon-search" :name="name" @handle="handleCreate" />
</template>

<script>
import permissionBtn from '@/components/buttonGroup/permissionBtn'
export default {
  name: 'SearchBtn',
  components: { permissionBtn },
  props: {
    auth: {
      type: String,
      default: ''
    }
  },

  data() {
    return {
      name: 'table.search'
    }
  },
  created() {},
  methods: {
    handleCreate() {
      console.log(this.auth)
      console.log(this.$store.getters.name)
      this.$emit('handle')
    }
  }
}
</script>
